{include file="header.html"}
<script type="text/javascript" src="templates/js/jquery.colorbox.js"
	charset="utf-8"></script>
<link href="templates/style/colorbox.css" rel="stylesheet"
	type="text/css" />
<script src="templates/jsnew/MediaStreamRecorder.js"> </script>

<script type="text/javascript">


$(function(){
    $('#acategory_form').validate({
        errorPlacement: function(error, element){
//             $(element).next('.noerror').hide();          
//             $(element).after(error);
        },
        success       : function(element){
        	 $(element).next('.noerror').show();  
        	 $(element).remove();
        	
        },
        rules : {
			g_ship:{
				required : true
			},
			g_voyage:{
				required : true
			},
			g_awb_code:{
				required : true
			},
			g_packingtime:{
				required : true
			},
			g_collectiontime:{
				required : true
			},
			g_container_depot:{
				required : true
			},
			g_container_man:{
				required : true
			},
			g_container_tel:{
				required : true
			},
			g_full_container_depot:{
				required : true
			},
			g_full_container_man:{
				required : true
			},
			g_full_container_tel:{
				required : true
			},
			g_loading_place:{
				required : true
			},
			g_loading_man:{
				required : true
			},
			g_loading_tel:{
				required : true
			},
			g_supervise:{
				required : true
			},
			g_tgdate:{
				required : true
			}
        },
        messages : {
			g_companytid:{
				required : '必填'
			},
			g_ship:{
				required :  '必填'
			},
			g_voyage:{
				required :  '必填'
			},
			g_awb_code:{
				required : '必填'
			},
			g_packingtime:{
				required :  '必填'
			},
			g_collectiontime:{
				required :  '必填'
			},
			g_container_depot:{
				required :  '必填'
			},
			g_container_man:{
				required :  '必填'
			},
			g_container_tel:{
				required :  '必填'
			},
			g_full_container_depot:{
				required :  '必填'
			},
			g_full_container_man:{
				required :  '必填'
			},
			g_full_container_tel:{
				required :  '必填'
			},
			g_loading_place:{
				required :  '必填'
			},
			g_loading_man:{
				required :  '必填'
			},
			g_loading_tel:{
				required :  '必填'
			},
			g_supervise:{
				required :  '必填'
			},
			g_tgdate:{
				required :  '必填'
			}
        }
    });
    $('#g_packingtime').datetimepicker({changeMonth: true,changeYear: true});
    $('#g_collectiontime').datetimepicker({changeMonth: true,changeYear: true});
    $('#g_tgdate').datetimepicker({changeMonth: true,changeYear: true});
    
    
    
    i=1000;
    
    
    $("#add").click(function(){

    		   $("#addtr").append('<tr id="tr_'+i+'"> <th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>箱型:</th>  <td class="paddingT15 wordSpacing5"><input  class="infoTableInput"  type="hidden" name="students[g_' + i + '][gs_tid]" value="" /><select   style="width: 100px;" class="infoTableInput" name="students[g_' + i + '][g_box]" id="g_box_{$t.gs_tid}">{html_options options=$box_options selected=$t.g_box}</select>  </td><th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>箱量:</th>   <td  class="paddingT15 wordSpacing5">   <input style="width:50px;"  id="g_volume_{$t.gs_tid}" class="infoTableInput"  placeholder="必填" type="text" name="students[g_'+i+'][g_volume]" value="" />   </td>  <th class="paddingT15">箱号:</th> style="width:50px;" <td class="paddingT15 wordSpacing5"> <input style="width:50px;" class="infoTableInput" id="g_ctn_no_{$t.gs_tid}" type="text"name="students[g_'+i+'][g_ctn_no]" value="" />	 	</td> <th  class="paddingT15">设备交接单号:</th> <td class="paddingT15 wordSpacing5"   style="text-align: left;" >  </td>	<td  class="paddingT15 wordSpacing5">   <a href="javascript:;"   onclick='+'delete_order("'+i+'")> 删除</a> </td></tr>');
    		   
    		
    		   i+=1;
   	 
   });

    
    $("#Sub").click(function(){
    
    	s=1;
    	
    	  $("[id^='box_']").each(function(){
    		  
    	
    		  
    		  if($(this).val()){
    			  
    			  $(this).css({"border":"1px solid #ccc"});
    		  
    		  }else{
    			  $(this).css({"border":"1px solid red"});
    			  
    			  s=0;
    			  
    		  }
    	  });
 			
  $("[id^='g_volume_']").each(function(){

    		  if($(this).val()){
    			  $(this).css({"border":"1px solid #ccc"});
    		  }else{
    			  $(this).css({"border":"1px solid red"});
    			  s=0;
    		  }
    	  });
            if(s===1){
	  
	      $('form').submit();
        }
 });
    
    
    
    
    
    
    $("#himg").live('click',function(){
		var id=$(this).attr("item");
		$w=$(window).width();
      $h=$(window).height();
      $w=$w*0.7;
      $("#hzframe").attr("src","index.php?app=datarefer&act=choosehz"+"&hzid="+id);
  	$("#hzframe").width($w);
      $.colorbox({
          width : $w+20,
          height : "650px",
          inline : true,
          href : "#hzlist"
      });
	});

    /*拆分货物弹出层*/
    $("#split").click(function(){
        $w=$(window).width();
        $h=$(window).height();
        $w=$w*0.7;
        $("#tagframe").attr("src","index.php?app=goodstrunk&act=choosetrunks&gtid="+$(this).attr("item"));
        $("#tagframe").width($w);
        $.colorbox({
            width : $w+20,
            height : "650px",
            inline : true,
            href : "#taglist"
        });
    });
    $("#remove").click(function(){
        if(confirm('确定取消提交货物？')){
            var gtid = $(this).attr("item");
            $.ajax({
                type:"post",
                url:'index.php?app=goodstrunk&act=remove',
                data: {gtid:gtid},
                dataType: "json",
                success:function(data){
					if(data.done){
						window.location.href="index.php?app=goodstrunk&act=edit&id="+gtid;
					}else{
						alert(data.msg);
					}

                }
            });
        }
    })
});


function conform(){
	$("#wm_type").val($("#wmtype").val());
	$("#typediv").hide();
	$("[id='g_type']").val($("#wmtype").val());
	$("[id='g_type2']").html($("#wmtype").val());
	
	if($("#wmtype").val()=='疏港'){
		$("#time1").html("<b style='color: #ff0000'>*&nbsp;</b>卸货时间:");
		$("#time2").html("<b style='color: #ff0000'>*&nbsp;</b>到港时间:");
		$("#place1").html("<b style='color: #ff0000'>*&nbsp;</b>卸货地:");
	}else if($("#wmtype").val()=='集港'){
		$("#time1").html("<b style='color: #ff0000'>*&nbsp;</b>装货时间:");
		$("#time2").html("<b style='color: #ff0000'>*&nbsp;</b>集港时间:");
		$("#place1").html("<b style='color: #ff0000'>*&nbsp;</b>装货地:");
	}
	
}


function cargotimeimg (type,number,id){
	
	if(type==1){
		if(number==1){
			$('#g_packingtime'+id).focus();
		}else if(number==2){
			$('#g_collectiontime'+id).focus();
		}else if (number==3){
			$('#g_tgdate'+id).focus();
		}
	}else if(type==3){
		
		$('#h_required_service_date_'+id).focus();
	}
}

var mainid=0;
var mapsender=null;
var newmapid;
//地图选择
function mapselect(mapid,id,sender){
	newmapid=mapid;
	mainid=id;
	mapsender=sender;
	$w=$(window).width();
	$h=$(window).height();
	$w=$w*0.7;
	$("#mapframe").attr("src","index.php?app=datarefer&act=mapselect&lng="+parseFloat($("[id='lng_"+mainid+"']").val())+"&lat="+parseFloat($("[id='lat_"+mainid+"']").val())+"&ret=window.parent.mapresult&address="+$(mapid).val());
	$("#mapframe").width($w);
	$.colorbox({
		width : $w+20,
		height : "650px",
		inline : true,
		href : "#maplist"
	});
}

function mapresult(lng,lat,addr){
	$('mapframe').colorbox.close();
	$("[id='lat_"+mainid+"']").val(lat);
	$("[id='lng_"+mainid+"']").val(lng);
	if(mapsender!=null){
		$(mapsender).html()
	}
    if(newmapid=="#g_container_depot"){
		$("#g_container_depot").val(addr);
	}
    if(newmapid=="#g_full_container_depot"){
		$("#g_full_container_depot").val(addr);
	}
    if(newmapid=="#g_loading_place"){
		$("#g_loading_place").val(addr);
	}

	if(lat>0&&lng>0){
		$("#mapimg_"+mainid).attr("src","templates/images/newadmin/map1.png");
	}

}

function changehz(id,name,hzid,linkman,linktel){
	$('hzframe').colorbox.close();
	if(hzid==''){

		$("[id='g_companytid_']").val(id);
		//$("#g_companytid_"+hzid).val(id);
		$("#hzshow").val(name);
		$("#g_loading_man").val(linkman);
		$("#g_loading_tel").val(linktel);
	}else{

		$("[id='g_companytid_"+hzid+"']").val(id);
		//$("#g_companytid_"+hzid).val(id);
		$("#hzshow"+hzid).val(name);
		$("#g_loading_man"+hzid).val(linkman);
		$("#g_loading_tel"+hzid).val(linktel);
	}
	$("#g_loading_man").val(linkman);
	$("#g_loading_tel").val(linktel);
}


function delete_order(order_id){  
	


		
		if(confirm('确定删除整行？')){
			

	        $.ajax({
	            type:"get",
	            url:'index.php?app=goodstrunk&act=del&id='+order_id,
	            		
	            success:function(msg){
	             
	                $("#tr_"+order_id).remove();
	            }
	        });
		}
 };

</script>
<style>
.infoTable{
margin: 0 0 0 0;
}
.info th {
    text-align: right;
    padding-right: 15px;
    
}
#form11 th,#form1 th{
text-align: right;
    padding-right: 15px;
}
</style>
<div id="rightTop">
	<p class="info_menu">
		<a href="javascript:void(0);" class="index">控制台</a>&nbsp;>&nbsp;<a href="javascript:void(0);">集卡货单</a>&nbsp;>&nbsp;<span>货单编号  {$auth.g_code}</span>
	</p>
	<ul class="subnav">
		<li><a class="btn1" href="index.php?app=goodstrunk">{$lang.manage}</a>
		</li>
		<!-- {if $auth.g_tid}} -->
		<li>
			<a class="btn1" href="index.php?app=goodstrunk&amp;act=add">{$lang.add}</a>
		</li>
		<li>
			<span>编辑</span></li>
		<!-- {else} -->
		<li>
			<span>新建</span>
		</li><!-- {/if} -->
	</ul>
</div>
{if !$auth.g_type}
<div id="typediv">
<div class="mask" style="display: block;">
<div style="width: 260px;
    background: #fff;
    height: 150px;
    padding: 20px;    margin: 0 auto;
    margin-top: 100px;">
<div style="    font-size: 16px;
    border-bottom: 1px solid #ddd;
    padding: 0 0 10px 0;
    margin-bottom: 10px;">请选择运单类型</div>
	<select  class="querySelect" name="wmtype" id="wmtype" style="height: 32px;
    width: 100%;
    padding: 6px 10px 8px;
    border: 1px solid #ccc;
    outline: 0;
    font-size: 14px;
    line-height: 19px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;margin-bottom: 5px">{html_options options=$type_options selected=$waybill.wm_type}</select>
	<p style="text-align: center;margin-top: 18px;"><input class="formbtn" type="submit" name="Submit" onclick="conform()" value="确定"/></p>
</div>
</div>
</div>
{/if}
<div style="display: none"  >
	<div id="hzlist">
	<iframe id="hzframe" width="" height="600px" frameborder="0" scrolling="no"></iframe>
	</div>
</div>
<div class="info">

    <div class="infoTable" style="padding-left: 10px;padding-top: 20px">
        <!--拆分货物-->
        {if $auth.g_tid && !empty($trunk)}
        <input class="formbtn" type="button" id="split" item = "{$auth.g_tid}" value="提交货物">
        {/if}
        <!--取消拆分货物-->
        {if $remove}
        <input class="formbtn" type="button" id="remove" item = "{$auth.g_tid}" value="取消提交货物">
        {/if}
    </div>

	<form method="post" enctype="multipart/form-data" id="acategory_form">
	<div class="jui-cut-label fn-mt25">
	        <div class="jui-message-bar">基本信息       {if $auth.g_status}（{$auth.g_status}）{/if}</div>
	    </div><input type="hidden" name="wm_code" value="{$auth.wm_code}" class="mls_names">
		
		<table class="infoTable">
		
			<tr>
					<th >单号:</th>
					<td     style="text-align: left;">
						{$auth.g_code}
						<input  class='infoTableInput'  id="g_code"  type='hidden' name='g_code' value='{$auth.g_code}' />
					</td >
					<th class="paddingT15">类型:</th>
					<td  style="text-align: left;">
						<input  class='infoTableInput'  id="g_type"  type='hidden' name='g_type' value='' />
						<span id="g_type2"  >{$auth.g_type}</span>
					</td>
					<th class="paddingT15">下单时间:</th>
					<td  style="text-align: left;">
						{$auth.g_opdate|date:Y-m-d H:i:s}
					</td>
						<th class="paddingT15">下单人:</th>
					<td  style="text-align: left;">
					<!-- {if !$auth.user_name}} -->
					{$g_opname}
					<!-- {else}} -->
						{$auth.user_name}
						  <!-- {/if} -->
						
						
						
					</td>
					
					<th >
					</th>
					
					<td >
					</td>
					
						</tr>
		
		
	
		
		
			</table>
			<HR style="FILTER: alpha(opacity=100,finishopacity=0,style=1)" size="1" width="83%" color="#ccc">
			<table class="infoTable">
				<tr>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>货主:</th>
				<td>
				<input type="hidden" value="{$auth.g_companytid}" name="g_companytid" id="g_companytid_{$s.g_tid}">
				<input type="text"  placeholder="货主必填" value="{$auth.g_company}" 
				item="{$s.g_tid}" name="hzshow" id="hzshow" 
				class="infoTableInput"
				urldata="index.php?app=datarefer&act=gethz" urlval="index.php?app=datarefer&act=gethzinfo"
				>
					<a href="javascript:void(0);" class="right_a" item="{$s.g_tid}" id="himg"><img src="templates/images/newadmin/serch.png" alt=""></a>
				
				<script>
				refer("hzshow","g_companytid_{$s.g_tid}");
				</script>
				</td>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>船名:</th>
					<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" id="g_ship" placeholder="船名必填" type="text"
					name="g_ship" value="{$auth.g_ship}" />
					</td>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>航次:</th>
					<td class="paddingT15 wordSpacing5"><input
					class="infoTableInput" placeholder="航次必填" id="g_voyage" type="text"
					name="g_voyage" value="{$auth.g_voyage}" />
					
				</tr>
				<tr>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>提单号:</th>
					<td      class="paddingT15 wordSpacing5">
						<input type="text" name="g_awb_code" value="{$auth.g_awb_code}" placeholder="提单号必填" class="infoTableInput" id="g_awb_code" >
					
					</td>
					<th class="paddingT15" id="time1"><b style="color: #ff0000">*&nbsp;</b>装货时间:</th>
						<td class="paddingT15 wordSpacing5">
						   <!-- {if $auth.g_packingtime}} -->
			      	   	<input type="text" name="g_packingtime" value="{$auth.g_packingtime|date:Y-m-d H:i}"  class="infoTableInput" id="g_packingtime" >
					<!-- {else}} -->
					
					 	<input type="text" name="g_packingtime" value=""  class="infoTableInput" id="g_packingtime" >
				
			       <!-- {/if} -->
							  <a href="javascript:void(0);" onclick="cargotimeimg('1','1','');" class="right_a"><img src="templates/images/rili.png" alt=""></a>
					</td>

					<th class="paddingT15" id="time2"><b style="color: #ff0000">*&nbsp;</b>到港时间:</th>
					<td class="paddingT15 wordSpacing5">
					   <!-- {if $auth.g_collectiontime}} -->
					
						<input type="text" name="g_collectiontime" value="{$auth.g_collectiontime|date:Y-m-d H:i}"  class="infoTableInput" id="g_collectiontime" >
							<!-- {else}} -->
							 	<input type="text" name="g_collectiontime" value=""  class="infoTableInput" id="g_collectiontime" >
						
						    <!-- {/if} -->
						  <a href="javascript:void(0);" onclick="cargotimeimg('1','2','');"  class="right_a"><img src="templates/images/rili.png" alt=""></a>
					</td>
				</tr>
				<tr>
					<th  class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>空箱场站:</th>
					<td>
						<input type="hidden" value="{$auth.g_container_lng}" name="g_container_lng" id="lng_container"><!--经度-->
						<input type="hidden" value="{$auth.g_container_lat}" name="g_container_lat" id="lat_container">
						<input type="text" name="g_container_depot" placeholder="空箱场站必填" value="{$auth.g_container_depot}" class="infoTableInput" id="g_container_depot" urldata="index.php?app=datarefer&act=getaddr" urlval="index.php?app=datarefer&act=getaddrinfo" >
						<a href="javascript:void(0);" onclick="mapselect('#g_container_depot','container',this)" class="right_a">
							{if $auth.g_container_lng>0&&$auth.g_container_lat>0}
							<img src="templates/images/newadmin/map1.png" alt="" id="mapimg_container">
							{else}
							<img src="templates/images/newadmin/map.png" alt="" id="mapimg_container">{/if}
						</a>
						<script>
							addrrefer("g_container_depot","lng_container","lat_container","mapimg_container");
						</script>
					</td>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>空箱场站联系人:</th>
					<td class="paddingT15 wordSpacing5">
						<input type="text" name="g_container_man" placeholder="空箱场站联系人必填" value="{$auth.g_container_man}" class="infoTableInput" id="g_container_man" >
					</td>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>空箱场站电话:</th>
					<td class="paddingT15 wordSpacing5">
						<input type="text" name="g_container_tel" placeholder="空箱场站电话必填" value="{$auth.g_container_tel}" class="infoTableInput" id="g_container_tel" >
					</td>
				</tr>
				<tr>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>重箱场站:</th>
					<td class="paddingT15 wordSpacing5" >
						<input type="hidden" value="{$auth.g_full_container_lng}" name="g_full_container_lng" id="lng_full_container"><!--经度-->
						<input type="hidden" value="{$auth.g_full_container_lat}" name="g_full_container_lat" id="lat_full_container">
						<input type="text" name="g_full_container_depot" placeholder="重箱场站必填" value="{$auth.g_full_container_depot}" class="infoTableInput" id="g_full_container_depot" urldata="index.php?app=datarefer&act=getaddr" urlval="index.php?app=datarefer&act=getaddrinfo">
						<a href="javascript:void(0);" onclick="mapselect('#g_full_container_depot','full_container',this)" class="right_a">
							{if $auth.g_full_container_lng>0&&$auth.g_full_container_lat>0}
							<img src="templates/images/newadmin/map1.png" alt="" id="mapimg_full_container">
							{else}
							<img src="templates/images/newadmin/map.png" alt="" id="mapimg_full_container">{/if}
						</a>
						<script>
							addrrefer("g_full_container_depot","lng_full_container","lat_full_container","mapimg_full_container");
						</script>
					</td>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>重箱场站联系人:</th>
					<td class="paddingT15 wordSpacing5">
						<input type="text" name="g_full_container_man" placeholder="重箱场站联系人必填" value="{$auth.g_full_container_man}" class="infoTableInput" id="g_full_container_man" >
					</td>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>重箱场站电话:</th>
					<td class="paddingT15 wordSpacing5">
						<input type="text" name="g_full_container_tel" placeholder="重箱场站电话必填" value="{$auth.g_full_container_tel}" class="infoTableInput" id="g_full_container_tel" >
					</td>
				</tr>
				<tr>
					<th class="paddingT15" id="place1"><b style="color: #ff0000">*&nbsp;</b>装货地:</th>
					<td class="paddingT15 wordSpacing5">
						<input type="hidden" value="{$auth.g_loading_lng}" name="g_loading_lng" id="lng_loading"><!--经度-->
						<input type="hidden" value="{$auth.g_loading_lat}" name="g_loading_lat" id="lat_loading">
						<input type="text" name="g_loading_place" value="{$auth.g_loading_place}" class="infoTableInput" id="g_loading_place" urldata="index.php?app=datarefer&act=getaddr" urlval="index.php?app=datarefer&act=getaddrinfo">
						<a href="javascript:void(0);" onclick="mapselect('#g_loading_place','loading',this)" class="right_a">
							{if $auth.g_loading_lat>0&&$auth.g_loading_lng>0}
							<img src="templates/images/newadmin/map1.png" alt="" id="mapimg_loading">
							{else}
							<img src="templates/images/newadmin/map.png" alt="" id="mapimg_loading">{/if}
						</a>
						<script>
							addrrefer("g_loading_place","lng_loading","lat_loading","mapimg_loading");
						</script>
					</td>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>联系人:</th>
					<td class="paddingT15 wordSpacing5">
						<input type="text" name="g_loading_man" placeholder="联系人必填" value="{$auth.g_loading_man}" class="infoTableInput" id="g_loading_man" >
					</td>
					<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>电话:</th>
					<td class="paddingT15 wordSpacing5">
					<input type="text" name="g_loading_tel" placeholder="电话必填" value="{$auth.g_loading_tel}" class="infoTableInput" id="g_loading_tel" >
				
					</td>
				</tr>
				<tr>
					<th  class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>监控方案:</th>
					<td>
						<select   class="infoTableInput" name="g_supervise" id="g_supervise">
							{html_options options=$monitor_main selected=$auth.g_supervise}</select>
					</td>
				</tr>
				<tr>
					<th class="paddingT15">备注:
					</th>
					<td class="paddingT15 wordSpacing5" colspan="5">
						<textarea  name="g_note" id="g_note" rows="3" style="width: 100%">{$auth.g_note}</textarea>
						<label></label>
					</td>
				</tr>
			</table>
				<!-- {if $auth.g_tid}} -->
			
			
<div class="jui-cut-label fn-mt25">
	       <div class="jui-message-bar">集装箱信息
	        
	           <!-- {if $isbool==1}} -->
			      	     <input     style="float:right;" class="formbtn" type="button" id="add" value="添加">
			       <!-- {/if} -->
				
	        
	        
	   
	        </div>
	    </div>
		<table id="addtr" class="infoTable">

		
		<!--{foreach from=$trunk item=t name=myname}-->
			<tr  id='tr_{$t.gs_tid}'>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>箱型:</th>
				
					
			<td class='paddingT15 wordSpacing5'>
						<input  class='infoTableInput'   type='hidden' name='students[{$smarty.foreach.myname.iteration}][gs_tid]' value='{$t.gs_tid}' />
					   <select   class='infoTableInput' style="width: 100px;" name='students[{$smarty.foreach.myname.iteration}][g_box]" id="g_box_{$t.gs_tid}'>
				
					   {html_options options=$box_options selected=$t.g_box}</select>
               </td>
				<th class="paddingT15"><b style="color: #ff0000">*&nbsp;</b>箱量:</th>
				<td class="paddingT15 wordSpacing5">
					<input style="width:100px;" class="infoTableInput" placeholder="必填" id="g_volume_{$t.gs_tid}" type="text" name="students[{$smarty.foreach.myname.iteration}][g_volume]" value="{$t.g_volume}" />
				</td>
				<th class="paddingT15">箱号:</th>
				<td class="paddingT15 wordSpacing5">
					<input style="width:100px;" class="infoTableInput" id="g_ctn_no_{$t.gs_tid}" type="text"name="students[{$smarty.foreach.myname.iteration}][g_ctn_no]" value="{$t.g_ctn_no}" />
				</td>
				<th class="paddingT15">已装箱量:</th>
				<td class="paddingT15 wordSpacing5">
					{$t.g_volumep}
				</td>
				<th class="paddingT15">未装箱量:</th>
				<td class="paddingT15 wordSpacing5">
					{$t.g_plus}
				</td>
				<th class="paddingT15">设备交接单号:</th>
				<td class="paddingT15 wordSpacing5"   style="text-align: left;" >
				 <b>{$t.g_eir_code}</b>
				</td>
				<td class="paddingT15 wordSpacing5">
			      
			       <!-- {if $isbool==1} -->
			       <a href="javascript:;"   onclick="delete_order('{$t.gs_tid}')"> 删除</a>
			       <!-- {/if} -->
			</td>
					
			</tr>
		<!--{/foreach}-->
		</table>
		
		
		     <!-- {/if} -->
		
		<table class="infoTable">
			<tr>
				<th></th>
				<td class="ptb20" style="text-align: left;">
				
				   <!-- {if $isbool==1} -->
			      
					<input class="formbtn" type="button" id="Sub" name="Submit" value="{$lang.submit}" />
			       <!-- {/if} -->
		
				</td>
			</tr>
		</table>

	</form>
	
</div>

<!--拆单弹出层-->
<div style="display: none"  >
    <div id="taglist">
        <iframe id="tagframe" src="index.php?app=goodstrunk&act=choosetrunks" width="" height="600px" frameborder="0" scrolling="no"></iframe>
    </div>
</div>
<div style="display: none"  >
	<div id="maplist">
		<iframe id="mapframe" width="" height="600px" frameborder="0" scrolling="no"></iframe>
	</div>
</div>
{include file="footer.html"}
